package upc.util;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;

import java.util.Objects;

public class ExcludeEmptyUpdateWrapper<T> extends UpdateWrapper<T> {
    @Override
    public UpdateWrapper<T> set(boolean condition, String column, Object val, String mapping) {
        condition = !Objects.isNull(val);
        return super.set(condition, column, val, mapping);
    }
}
